const moudle2 = {
  namespaced: true,
  state: () => ({
    count: 10
  }),
  getters: {
    getcount (state) {
      return state.count
    }
  },
  mutations: {
    incement (state) {
      console.log('模块2')
      state++
    }
  },
  actions: {
    // increment (ctx) {
    //   ctx.commit('a/incement', null, { root: true })
    //   // console.log(ctx.rootState)
    //   // console.log(ctx.rootGetters)
    //   // console.log(ctx.rootCommit)
    //   // console.log('jjjj')
    //   console.log(ctx.rootGetters.getcount)
    // }
    increment: {
      handler (namectx) {
        namectx.commit('a/incement', null, { root: true })
      },
      root: true
    }
  }
}
export default moudle2
